package com.woniuxy.dao;

import com.woniuxy.entity.Merchants;
import com.woniuxy.entity.Merchants_finance;
import com.woniuxy.entity.SelectOption;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author leimin
 * @create 2022-04-26 19:03
 */
@Mapper
public interface MerchantsDao {
    List<Merchants> findAllByCondition(Merchants merchants);

    List<Merchants> findAll();

    Merchants findOne(int id);

    int addOne(Merchants merchants);

    int deleteOne(int id);

    int deleteBatch(int[] ids);

    int updateOne(Merchants merchants);

    List<Merchants_finance> findFinance(Merchants merchants);

    List<SelectOption> findTypeOption();

    List<SelectOption> findAttributeOption();

    List<SelectOption> findGradeOption();

    List<SelectOption> findIndustryOption();

    Merchants findByCode(String code);

    Merchants findByName(String name);

    int addBatch(List<Merchants> list);
}
